home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / notes / english / violinkey.file < prev    next >
Text File  |  1999-04-19  |  48KB  |  1,572 lines

  1. /* suprogram for "Notes.pprx" */
  2.  
  3. signal on halt
  4. signal on break_c
  5. signal on break_e
  6. signal on break_d
  7. call ppm_SetStyle(N)
  8. call ppm_SetMagMode(250)
  9. call ppm_UpdateScreen()
  10.  
  11.  
  12. noteneingabe:
  13.     sysform = "choosen notesystem:2"'0a'x"number of accident.:2"'0a'x"smallest noteworth:4"
  14.     systemform = ppm_Getform("Please give in ... (nothing=BREAK)", 3, sysform)
  15.     if systemform = '' then exit_msg("Break!")
  16.     parse var systemform systemart '0a'x vz '0a'x xgrd
  17.     if vz == '' then vz = 0
  18.  
  19.     select
  20.      when systemart == '2' then zdist = 4
  21.      when systemart == '1v' then zdist = 2
  22.      when systemart == '1b' then zdist = 2
  23.      when systemart == '' then exit_msg("Break!")
  24.      when vz == '' then exit_msg("Break!")
  25.      otherwise noteneingabe()
  26.     end
  27.  
  28.     zdist2 = zdist-2
  29.  
  30.     select
  31.      when xgrd == '1' then xg =0.7
  32.      when xgrd == '2' then xg =1.4
  33.      when xgrd == '4' then xg =2.8
  34.      when xgrd == '8' then xg =5.6
  35.      when xgrd == '16' then xg =11.2
  36.      when xgrd == '' then exit_msg("Break!")
  37.      otherwise noteneingabe()
  38.     end
  39.  
  40.     /* smallest notedistance
  41.     sysart = "notesystem:2"
  42.     systemart = ppm_Getform("Please repeat your choice of the notesystems... (2, 1v oder 1b)", 3, sysart)
  43.     select
  44.     when systemart == '2' then zdist = 4
  45.     when systemart == '1v' then zdist = 2
  46.     when systemart == '1b' then zdist = 2
  47.     otherwise noteneingabe()
  48.     end
  49.     zdist2 = zdist-2
  50.     xgrdform = "(1,2,4,8 oder 16)"
  51.     xgrd = ppm_GetForm("Pleace give in the smallest note distance ...(nothing=Break!)", 3, xgrdform)
  52.     if xgrd == '' then  exit_msg("Break")
  53.     select
  54.      when xgrd == '1' then xg =0.7
  55.      when xgrd == '2' then xg =1.4
  56.      when xgrd == '4' then xg =2.8
  57.      when xgrd == '8' then xg =5.6
  58.      when xgrd == '16' then xg =11.2
  59.      otherwise noteneingabe()
  60.     end                      */
  61.  
  62.    /* pointmessure of the notes */
  63.    notepkt = 26
  64.    call ppm_SetJustification(0)
  65.    
  66.    zz = 0   /* linecounter (german:Zeilenzähler) */
  67.    notex = (2+(vz*0.175))
  68.    page = ppm_CurrentPage()
  69.  
  70. pfad:
  71.    do
  72.          /*  choose=ppm_Inform(2,"Please choose the notefile or break ...", "Break","File")
  73.            if choose == 0 then exit_msg("Break!")*/
  74.            eingabe = ppm_GetFileName("Pleace choose the notescriptfile ...", "Notes:","")
  75.            res = OPEN(notenfile, eingabe, 'R')
  76.            if res == 0 then
  77.              do
  78.                  fres = ppm_inform(2,"There was an error, or the file doesn't exists!!!","repeat","break")
  79.                  if fres  == 0 then pfad()
  80.                  else exit_msg("Break!")
  81.              end
  82.            call ppm_ShowStatus("OK, I'm working ...")
  83.            auslesen(notenfile)
  84.     end
  85.  
  86.     /* x-distance of the notes */
  87. auslesen:
  88.         do
  89.           parse arg file
  90.           noten = READCH(file, 4000)
  91.           i=1
  92.           do forever
  93.             nw = word(noten, i)
  94.             nn = word(noten, i+1)
  95.             al = word(noten, i+2)
  96.             if nw == 'P' then nw = 'p'
  97.             if nw == 'D' then nw = 'd'
  98.             if nw == 'C' then nw = 'c'
  99.             if nw == 'L' then nw = 'l'
  100.             if nn == 'L' then nn = 'l'
  101.             if nw == 'J' then nw = 'j'
  102.             if nw == 'M' then nw = 'm'
  103.             if nw == 'END' then nw = 'end'
  104.             select
  105.               when al == (X2C(4e0a)) then al = 'n'
  106.               when al == (X2C(6e0a)) then al = 'n'
  107.               when al == (X2C(300a)) then al = '0'
  108.               otherwise exit_msg("There was an error!")
  109.             end
  110.             select
  111.               when nn=='GB2' then nn = 'Gb2'
  112.               when nn=='AB2' then nn = 'Ab2'
  113.               when nn=='BB2' then nn = 'Bb2'
  114.               when nn=='DB3' then nn = 'Db3'
  115.               when nn=='EB3' then nn = 'Eb3'
  116.               when nn=='GB3' then nn = 'Gb3'
  117.               when nn=='AB3' then nn = 'Ab3'
  118.               when nn=='BB3' then nn = 'Bb3'
  119.               when nn=='DB4' then nn = 'Db4'
  120.               when nn=='EB4' then nn = 'Eb4'
  121.               when nn=='GB4' then nn = 'Gb4'
  122.               when nn=='AB4' then nn = 'Ab4'
  123.               when nn=='BB4' then nn = 'Bb4'
  124.               when nn=='DB5' then nn = 'Db5'
  125.               when nn=='EB5' then nn = 'Eb5'
  126.               otherwise NOP
  127.             end
  128.             call auswahl()
  129.             i=i+3
  130.           end
  131.         end
  132.  
  133.  
  134.  
  135. auswahl:
  136.  
  137. do
  138.     select
  139.       when nw == 'j' then do
  140.                           zz = 0   /* linecounter */
  141.                           notex = (2+(vz*0.175))
  142.                           return
  143.                           end
  144.       when nw == 'end' then
  145.         do
  146.             call ppm_ClearStatus()
  147.             exit_msg("Ready!")
  148.         end
  149.       when nw=='s' then
  150.           do
  151.           xw = xg/16
  152.           nw='x'
  153.           yv = 0
  154.           end
  155.       when nw=='S' then
  156.           do
  157.           xw = xg/16
  158.           nw='X'
  159.           yv = 0.47
  160.           end
  161.       when nw=='e' then
  162.           do
  163.           xw = xg/8
  164.           nw='e'
  165.           yv = 0
  166.           end
  167.       when nw=='E' then
  168.           do
  169.           xw = xg/8
  170.           nw='E'
  171.           yv = 0.47
  172.           end
  173.       when nw=='q' then
  174.           do
  175.           xw = xg/4
  176.           nw='q'
  177.           yv = 0
  178.           end
  179.       when nw=='Q' then
  180.           do
  181.           xw = xg/4
  182.           nw='Q'
  183.           yv = 0.47
  184.           end
  185.       when nw=='h' then
  186.           do
  187.           xw = xg/2
  188.           yv = 0
  189.           end
  190.       when nw=='H' then
  191.           do
  192.           xw = xg/2
  193.           yv = 0.47
  194.           end
  195.       when nw=='w' then
  196.           do
  197.           xw = xg
  198.           nw='w'
  199.           yv = 0
  200.           end
  201.       when nw=='W' then
  202.           do
  203.           xw = xg
  204.           nw='W'
  205.           yv = 0.47
  206.           end
  207.  
  208.      /* 2 eigth- or sixteenthnotes join together by a beam(fat line) */
  209.  
  210.       when nw=='m' then
  211.           do
  212.             call ppm_SetEdit(boxid)
  213.             call ppm_SelectBoxText()
  214.             boxtxt=ppm_GetBlockText(0)
  215.             btb=word(boxtxt,1)
  216.             select
  217.                 when btb=='e' then
  218.                 do
  219.                   fbx=0.45
  220.                   fby=0.12
  221.                   newtxt='q'
  222.                   balk=1
  223.                 end
  224.                 when btb=='E' then
  225.                 do
  226.                   fbx=0.145
  227.                   fby=0.73
  228.                   newtxt='Q'
  229.                   balk=1
  230.                 end
  231.                 when btb=='x' then
  232.                 do
  233.                   fbx=0.45
  234.                   fby=0.12
  235.                   newtxt='q'
  236.                   balk=2
  237.                 end
  238.                 when btb=='X' then
  239.                 do
  240.                   fbx=0.145
  241.                   fby=0.73
  242.                   newtxt='Q'
  243.                   balk=2
  244.                 end
  245.                 otherwise
  246.                 do
  247.                     call ppm_EndEdit()
  248.                     call ppm_Inform(1,"Only eight or sixteenth are able to merge!!!","OK")
  249.                     notenwert()
  250.                 end
  251.             end
  252.             call ppm_Cut()
  253.             call ppm_UnBlock()
  254.             call ppm_EndEdit()
  255.             call ppm_TextIntoBox(boxid, newtxt)
  256.             boxposb=ppm_GetBoxPosition(boxid)
  257.             boxbx=word(boxposb,1)
  258.             boxby=word(boxposb,2)
  259.             if boxbosbx <= 3 then
  260.             do
  261.                 call ppm_Inform(1,"Merge not accross the lineend !!!","OK")
  262.                 notenwert()
  263.             end
  264.             firstbox = boxid - 1
  265.             do forever
  266.               info = ppm_GetBoxInfo(firstbox)
  267.               type = word(info,1)
  268.               if type ~= "Text" then firstbox = firstbox - 1
  269.               else break
  270.             end
  271.             curbox=ppm_ArtFirstBox(firstbox)
  272.             call ppm_SetEdit(curbox)
  273.             call ppm_SelectBoxText()
  274.             boxtxt=ppm_GetBlockText(0)
  275.             bta=word(boxtxt,1)
  276.             select
  277.                 when bta=='e' then
  278.                 do
  279.                   fax=0.39
  280.                   fay=0.12
  281.                   newtxt='q'
  282.                 end
  283.                 when bta=='E' then
  284.                 do
  285.                   fax=0.085
  286.                   fay=0.73
  287.                   newtxt='Q'
  288.                 end
  289.                 when bta=='x' then
  290.                 do
  291.                   fax=0.39
  292.                   fay=0.12
  293.                   newtxt='q'
  294.                 end
  295.                 when bta=='X' then
  296.                 do
  297.                   fax=0.085
  298.                   fay=0.73
  299.                   newtxt='Q'
  300.                 end
  301.                 otherwise
  302.                 do
  303.                     call ppm_EndEdit()
  304.                     call ppm_Inform(1,"Only eight or sixteenth are able to merge!!!","OK")
  305.                     notenwert()
  306.                 end
  307.             end
  308.             if bta ~= btb then
  309.             do
  310.                 call ppm_EndEdit()
  311.                 call ppm_Inform(1,"Only same notes are able to merge!!!","OK")
  312.                 call ppm_SetEdit(boxid)
  313.                 call ppm_SelectBoxText()
  314.                 call ppm_Cut()
  315.                 call ppm_EndEdit()
  316.                 call ppm_TextIntoBox(boxid, btb)
  317.                 notenwert()
  318.             end
  319.             call ppm_Cut()
  320.             call ppm_UnBlock()
  321.             call ppm_EndEdit()
  322.             call ppm_TextIntoBox(curbox, newtxt)
  323.             boxposa=ppm_GetBoxPosition(curbox)
  324.             boxax=word(boxposa,1)
  325.             boxay=word(boxposa,2)
  326.             call ppm_SetLineWeight(3)
  327.             do forever
  328.               if balk == 0 then break
  329.               lineid=ppm_DrawLine(boxax+fax, boxay+fay, boxbx+fbx, boxby+fby)
  330.               call ppm_SetBoxOffset(lineid, -0.08, 0)
  331.               measure=ppm_GetBoxSize(lineid)
  332.               linex = word(measure,1)
  333.               liney = word(measure,2)
  334.               call ppm_SetBoxSize(lineid, linex - 0.155, liney)
  335.               if bta == 'x' then
  336.               do
  337.                 fay = fay + 0.2
  338.                 fby = fby + 0.2
  339.               end
  340.               if bta == 'X' then
  341.               do
  342.                 fay = fay - 0.2
  343.                 fby = fby - 0.2
  344.               end
  345.               balk = balk - 1
  346.             end
  347.             call ppm_ArtFirstBox(boxid)
  348.             call ppm_SetLineWeight(0.5)
  349.           end
  350.  
  351.  
  352.      /* point after a note */
  353.  
  354.       when nw == 'pt' then
  355.           do
  356.             if notex < 3 then
  357.             do
  358.               notex = bakx
  359.               zz = zz - zdist
  360.               call ppm_SetSize(25)
  361.               box#id = ppm_CreateBox(notex+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  362.               call ppm_SetSize(20)
  363.               call ppm_TextIntoBox(box#id, 'd')
  364.             end
  365.             else
  366.             do
  367.               call ppm_SetSize(25)
  368.               box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  369.               call ppm_SetSize(20)
  370.               call ppm_TextIntoBox(box#id, 'd')
  371.             end
  372.            select
  373.                when nn == '1' then
  374.                do
  375.                xw = xg
  376.                notex = notex+xw
  377.                end
  378.                when nn == '2' then
  379.                do
  380.                xw = xg/2
  381.                notex = notex+xw
  382.                end
  383.                when nn == '4' then
  384.                do
  385.                xw = xg/4
  386.                notex = notex+xw
  387.                end
  388.                when nn == '8' then
  389.                do
  390.                xw = xg/8
  391.                notex = notex+xw
  392.                end
  393.                when nn == '16' then
  394.                do
  395.                xw  = xg/16
  396.                notex = notex+xw
  397.                end
  398.                when nn == 'l' then
  399.                do
  400.                xw  = 0.2
  401.                notex = notex+xw
  402.                end
  403.                when nn == '0' then do
  404.                end
  405.                otherwise
  406.                do
  407.                 call ppm_ClearStatus()
  408.                 exit_msg("There was an error")
  409.                end
  410.            end
  411.            if notex >=18.7 then
  412.                do
  413.                  notex = (2+(vz*0.175))
  414.                  zz = zz + zdist
  415.                end
  416.            return
  417.           end
  418.  
  419.       when nw == 'PT' then
  420.           do
  421.             if notex < 3 then
  422.             do
  423.               notex = bakx
  424.               zz = zz - zdist
  425.               call ppm_SetSize(25)
  426.               box#id = ppm_CreateBox(notex+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  427.               call ppm_SetSize(20)
  428.               call ppm_TextIntoBox(box#id, 'd')
  429.             end
  430.             else
  431.             do
  432.               call ppm_SetSize(25)
  433.               box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  434.               call ppm_SetSize(20)
  435.               call ppm_TextIntoBox(box#id, 'd')
  436.             end
  437.            select
  438.                when nn == '1' then
  439.                do
  440.                xw = xg
  441.                notex = notex+xw
  442.                end
  443.                when nn == '2' then
  444.                do
  445.                xw = xg/2
  446.                notex = notex+xw
  447.                end
  448.                when nn == '4' then
  449.                do
  450.                xw = xg/4
  451.                notex = notex+xw
  452.                end
  453.                when nn == '8' then
  454.                do
  455.                xw = xg/8
  456.                notex = notex+xw
  457.                end
  458.                when nn == '16' then
  459.                do
  460.                xw  = xg/16
  461.                notex = notex+xw
  462.                end
  463.                when nn == 'l' then
  464.                do
  465.                xw  = 0.2
  466.                notex = notex+xw
  467.                end
  468.                when nn == '0' then
  469.                do
  470.                end
  471.                otherwise
  472.                do
  473.                 call ppm_ClearStatus()
  474.                 exit_msg("There was an error")
  475.                end
  476.            end
  477.            if notex >=18.7 then
  478.                do
  479.                  notex = (2+(vz*0.175))
  480.                  zz = zz + zdist
  481.                end
  482.            return
  483.           end
  484.  
  485.       /* Barline */
  486.       when nw == 'l' then
  487.           do
  488.            call ppm_SetLineWeight(0.25)
  489.            call ppm_DrawLine(notex, 2+zz, notex, 2.8+zz)
  490.            notex = notex+0.2
  491.            return
  492.           end
  493.  
  494.      /* Pausen */
  495.       when nw == 'p' then
  496.         do
  497. pausenwert:
  498.            x = notex
  499.            select
  500.                when nn== '0' then do
  501.                                   end
  502.                when nn== '1' then do
  503.  
  504.                    y = 2.28+zz
  505.                    call ppm_SetLineWeight(4)
  506.                    call ppm_DrawLine(x, y, x+0.4, y)
  507.                    call ppm_SetLineWeight(0.25)
  508.                    xw = xg
  509.                    notex = notex+xw
  510.                end
  511.  
  512.                when nn== '2' then do
  513.  
  514.                    y = 2.32+zz
  515.                    call ppm_SetLineWeight(4)
  516.                    call ppm_DrawLine(x, y, x+0.4, y)
  517.                    call ppm_SetLineWeight(0.25)
  518.                    xw = xg/2
  519.                    notex = notex+xw
  520.                end
  521.  
  522.                when nn== '4' then do
  523.  
  524.                    y = 2.07+zz
  525.                    Pbox = ppm_CreateBox(x, y, 0.59, 0.86, 0)
  526.                    boxnm = ppm_DocNextBox(Pbox)
  527.                    call ppm_DeleteContents(boxnm)
  528.                    call ppm_ImportGraphic(boxnm, 'Genies:note_pause/quarterpause', pause)
  529.                    xw = xg/4
  530.                    notex = notex+xw
  531.                end
  532.  
  533.                when nn== '8' then do
  534.  
  535.                    y = 2.21+zz
  536.                    Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  537.                    boxnm = ppm_DocNextBox(Pbox)
  538.                    call ppm_DeleteContents(boxnm)
  539.                    call ppm_ImportGraphic(boxnm, 'Genies:note_pause/eighthpause', pause)
  540.                    xw = xg/8
  541.                    notex = notex+xw
  542.                end
  543.  
  544.                when nn== '16' then do
  545.  
  546.                    y = 2.21+zz
  547.                    Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  548.                    boxnm = ppm_DocNextBox(Pbox)
  549.                    call ppm_DeleteContents(boxnm)
  550.                    call ppm_ImportGraphic(boxnm, 'Genies:note_pause/sixteenthpause', pause)
  551.                    xw = xg/16
  552.                    notex = notex+xw
  553.                end
  554.                otherwise
  555.                do
  556.                 call ppm_ClearStatus()
  557.                 exit_msg("There was an error")
  558.                end
  559.            end
  560.            if notex >=18.7 then
  561.                do
  562.                  notex = (2+(vz*0.175))
  563.                  zz = zz + zdist
  564.                end
  565.           return
  566.         end
  567.  
  568.       when nw == 'c' then
  569.         do
  570.           select
  571.  
  572.            when nn== '1' then
  573.                do
  574.                xw = xg
  575.                notex = notex+xw
  576.                end
  577.            when nn== '2' then
  578.                do
  579.                xw = xg/2
  580.                notex = notex+xw
  581.                end
  582.            when nn== '4' then
  583.                do
  584.                xw = xg/4
  585.                notex = notex+xw
  586.                end
  587.            when nn== '8' then
  588.                do
  589.                xw = xg/8
  590.                notex = notex+xw
  591.                end
  592.            when nn== '16' then
  593.                do
  594.                xw = xg/16
  595.                notex = notex+xw
  596.                end
  597.            when nn == 'l' then
  598.                do
  599.                xw  = 0.2
  600.                notex = notex+xw
  601.                end
  602.            when nn == '0' then do
  603.                end
  604.            otherwise
  605.            do
  606.             call ppm_ClearStatus()
  607.             exit_msg("There was an error")
  608.            end
  609.           end
  610.            if notex >=18.7 then
  611.                do
  612.                  notex = (2+(vz*0.175))
  613.                  zz = zz + zdist
  614.                end
  615.           return
  616.         end
  617.       otherwise
  618.       do
  619.        call ppm_ClearStatus()
  620.        exit_msg("There was an error!")
  621.       end
  622.     end
  623.  
  624.  
  625.      /* y-Raster der Noten - Notenhälse nach oben (y-Position der Box) */
  626.  
  627.         call ppm_SetLineWeight(0.25)
  628.  
  629.       select
  630.         when nn=='f#5'  then
  631.         do
  632.             yw = 0.645
  633.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  634.             call ppm_SetSize(20)
  635.             call ppm_TextIntoBox(box#id, 's')
  636.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  637.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  638.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  639.         end
  640.         when nn=='f5'  then
  641.         do
  642.             yw = 0.645
  643.             if al == 'n' then call auflhoch()
  644.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  645.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  646.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  647.         end
  648.         when nn=='e5'  then
  649.         do
  650.             yw = 0.745
  651.             if al == 'n' then call auflhoch()
  652.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  653.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  654.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  655.         end
  656.         when nn=='eb5'  then
  657.         do
  658.             yw = 0.745
  659.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  660.             call ppm_SetSize(20)
  661.             call ppm_TextIntoBox(box#id, 'f')
  662.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  663.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  664.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  665.         end
  666.         when nn=='d#5'  then
  667.         do
  668.             yw = 0.845
  669.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  670.             call ppm_SetSize(20)
  671.             call ppm_TextIntoBox(box#id, 's')
  672.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  673.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  674.         end
  675.         when nn=='d5'  then
  676.         do
  677.             yw = 0.845
  678.             if al == 'n' then call auflhoch()
  679.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  680.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  681.         end
  682.         when nn=='db5'  then
  683.         do
  684.             yw = 0.845
  685.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  686.             call ppm_SetSize(20)
  687.             call ppm_TextIntoBox(box#id, 'f')
  688.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  689.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  690.         end
  691.         when nn=='c#5'  then
  692.         do
  693.             yw = 0.945
  694.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  695.             call ppm_SetSize(20)
  696.             call ppm_TextIntoBox(box#id, 's')
  697.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  698.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  699.         end
  700.         when nn=='c5'  then
  701.         do
  702.             yw = 0.945
  703.             if al == 'n' then call auflhoch()
  704.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  705.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  706.         end
  707.  
  708.         when nn=='b4'  then
  709.         do
  710.             yw = 1.045
  711.             if al == 'n' then call auflhoch()
  712.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  713.         end
  714.  
  715.         when nn=='bb4'  then
  716.         do
  717.             yw = 1.045
  718.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  719.         end
  720.  
  721.         when nn=='a#4' then
  722.         do
  723.             yw = 1.145
  724.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  725.             call ppm_SetSize(20)
  726.             call ppm_TextIntoBox(box#id, 's')
  727.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  728.         end
  729.  
  730.         when nn=='a4'  then
  731.         do
  732.             yw = 1.145
  733.             if al == 'n' then call auflhoch()
  734.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  735.         end
  736.  
  737.         when nn=='ab4' then
  738.         do
  739.             yw = 1.145
  740.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  741.             call ppm_SetSize(20)
  742.             call ppm_TextIntoBox(box#id, 'f')
  743.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  744.         end
  745.  
  746.         when nn=='g#4' then
  747.         do
  748.             yw = 1.245
  749.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  750.             call ppm_SetSize(20)
  751.             call ppm_TextIntoBox(box#id, 's')
  752.         end
  753.         when nn=='g4'  then
  754.         do
  755.             yw = 1.245
  756.             if al == 'n' then call auflhoch()
  757.         end
  758.         when nn=='gb4' then
  759.         do
  760.             yw = 1.245
  761.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  762.             call ppm_SetSize(20)
  763.             call ppm_TextIntoBox(box#id, 'f')
  764.         end
  765.         when nn=='f#4' then
  766.         do
  767.             yw = 1.345
  768.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  769.             call ppm_SetSize(20)
  770.             call ppm_TextIntoBox(box#id, 's')
  771.         end
  772.         when nn=='f4'  then
  773.         do
  774.             yw = 1.345
  775.             if al == 'n' then call auflhoch()
  776.         end
  777.         when nn=='e#4' then
  778.         do
  779.             yw = 1.445
  780.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  781.             call ppm_SetSize(20)
  782.             call ppm_TextIntoBox(box#id, 's')
  783.         end
  784.         when nn=='e4'  then
  785.         do
  786.             yw = 1.445
  787.             if al == 'n' then call auflhoch()
  788.         end
  789.         when nn=='eb4' then
  790.         do
  791.             yw = 1.445
  792.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  793.             call ppm_SetSize(20)
  794.             call ppm_TextIntoBox(box#id, 'f')
  795.         end
  796.         when nn=='d#4' then
  797.         do
  798.             yw = 1.545
  799.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  800.             call ppm_SetSize(20)
  801.             call ppm_TextIntoBox(box#id, 's')
  802.         end
  803.         when nn=='d4'  then
  804.         do
  805.             yw = 1.545
  806.             if al == 'n' then call auflhoch()
  807.         end
  808.         when nn=='db4' then
  809.         do
  810.             yw = 1.545
  811.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  812.             call ppm_SetSize(20)
  813.             call ppm_TextIntoBox(box#id, 'f')
  814.         end
  815.         when nn=='c#4' then
  816.         do
  817.             yw = 1.645
  818.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  819.             call ppm_SetSize(20)
  820.             call ppm_TextIntoBox(box#id, 's')
  821.         end
  822.         when nn=='c4'  then
  823.         do
  824.             yw = 1.645
  825.             if al == 'n' then call auflhoch()
  826.         end
  827.         when nn=='b3'  then
  828.         do
  829.             yw = 1.745
  830.             if al == 'n' then call auflhoch()
  831.         end
  832.         when nn=='bb3'  then
  833.         do
  834.             yw = 1.745
  835.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  836.             call ppm_SetSize(20)
  837.             call ppm_TextIntoBox(box#id, 'f')
  838.         end
  839.         when nn=='a#3' then
  840.         do
  841.             yw = 1.845
  842.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  843.             call ppm_SetSize(20)
  844.             call ppm_TextIntoBox(box#id, 's')
  845.         end
  846.         when nn=='a3'  then
  847.         do
  848.             yw = 1.845
  849.             if al == 'n' then call auflhoch()
  850.         end
  851.         when nn=='ab3' then
  852.         do
  853.             yw = 1.845
  854.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  855.             call ppm_SetSize(20)
  856.             call ppm_TextIntoBox(box#id, 'f')
  857.         end
  858.         when nn=='g#3' then
  859.         do
  860.             yw = 1.945
  861.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  862.             call ppm_SetSize(20)
  863.             call ppm_TextIntoBox(box#id, 's')
  864.         end
  865.         when nn=='g3'  then
  866.         do
  867.             yw = 1.945
  868.             if al == 'n' then call auflhoch()
  869.         end
  870.         when nn=='gb3' then
  871.         do
  872.             yw = 1.945
  873.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  874.             call ppm_SetSize(20)
  875.             call ppm_TextIntoBox(box#id, 'f')
  876.         end
  877.         when nn=='f#3' then
  878.         do
  879.             yw = 2.045
  880.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  881.             call ppm_SetSize(20)
  882.             call ppm_TextIntoBox(box#id, 's')
  883.         end
  884.         when nn=='f3'  then
  885.         do
  886.             yw = 2.045
  887.             if al == 'n' then call auflhoch()
  888.         end
  889.         when nn=='e#3' then
  890.         do
  891.             yw = 2.145
  892.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  893.             call ppm_SetSize(20)
  894.             call ppm_TextIntoBox(box#id, 's')
  895.         end
  896.         when nn=='e3'  then
  897.         do
  898.             yw = 2.145
  899.             if al == 'n' then call auflhoch()
  900.         end
  901.         when nn=='eb3' then
  902.         do
  903.             yw = 2.145
  904.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  905.             call ppm_SetSize(20)
  906.             call ppm_TextIntoBox(box#id, 'f')
  907.         end
  908.         when nn=='d#3' then
  909.         do
  910.             yw = 2.245
  911.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  912.             call ppm_SetSize(20)
  913.             call ppm_TextIntoBox(box#id, 's')
  914.         end
  915.         when nn=='d3'  then
  916.         do
  917.             yw = 2.245
  918.             if al == 'n' then call auflhoch()
  919.         end
  920.         when nn=='db3' then
  921.         do
  922.             yw = 2.245
  923.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  924.             call ppm_SetSize(20)
  925.             call ppm_TextIntoBox(box#id, 'f')
  926.         end
  927.  
  928.         when nn=='c#3' then
  929.         do
  930.             yw = 2.345
  931.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  932.             call ppm_SetSize(20)
  933.             call ppm_TextIntoBox(box#id, 's')
  934.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  935.         end
  936.  
  937.         when nn=='c3'  then
  938.         do
  939.             yw = 2.345
  940.             if al == 'n' then call auflhoch()
  941.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  942.         end
  943.  
  944.         when nn=='b2'  then
  945.         do
  946.             yw = 2.445
  947.             if al == 'n' then call auflhoch()
  948.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  949.         end
  950.  
  951.         when nn=='bb2'  then
  952.         do
  953.             yw = 2.445
  954.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  955.             call ppm_SetSize(20)
  956.             call ppm_TextIntoBox(box#id, 'f')
  957.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  958.         end
  959.  
  960.         when nn=='a#2' then
  961.         do
  962.             yw = 2.545
  963.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  964.             call ppm_SetSize(20)
  965.             call ppm_TextIntoBox(box#id, 's')
  966.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  967.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  968.         end
  969.  
  970.         when nn=='a2'  then
  971.         do
  972.             yw = 2.545
  973.             if al == 'n' then call auflhoch()
  974.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  975.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  976.         end
  977.  
  978.         when nn=='ab2'  then
  979.         do
  980.             yw = 2.545
  981.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  982.             call ppm_SetSize(20)
  983.             call ppm_TextIntoBox(box#id, 'f')
  984.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  985.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  986.         end
  987.  
  988.         when nn=='g#2'  then
  989.         do
  990.             yw = 2.645
  991.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  992.             call ppm_SetSize(20)
  993.             call ppm_TextIntoBox(box#id, 's')
  994.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  995.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  996.         end
  997.  
  998.         when nn=='g2'  then
  999.         do
  1000.             yw = 2.645
  1001.             if al == 'n' then call auflhoch()
  1002.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1003.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1004.         end
  1005.  
  1006.  
  1007.         when nn=='gb2'  then
  1008.         do
  1009.             yw = 2.645
  1010.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  1011.             call ppm_SetSize(20)
  1012.             call ppm_TextIntoBox(box#id, 'f')
  1013.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1014.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1015.         end
  1016.  
  1017.         when nn=='f#2'  then
  1018.         do
  1019.             yw = 2.745
  1020.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.32, 0.35, 0.75, 0)
  1021.             call ppm_SetSize(20)
  1022.             call ppm_TextIntoBox(box#id, 's')
  1023.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1024.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1025.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1026.         end
  1027.  
  1028.         when nn=='f2'  then
  1029.         do
  1030.             yw = 2.745
  1031.             if al == 'n' then call auflhoch()
  1032.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1033.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1034.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1035.         end
  1036.  
  1037.         when nn=='e2'  then
  1038.         do
  1039.             yw = 2.845
  1040.             if al == 'n' then call auflhoch()
  1041.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1042.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1043.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1044.         end
  1045.  
  1046.         when nn=='eb2'  then
  1047.         do
  1048.             yw = 2.845
  1049.             box#id = ppm_CreateBox(notex-0.23, yw+zz+0.21, 0.35, 0.75, 0)
  1050.             call ppm_SetSize(20)
  1051.             call ppm_TextIntoBox(box#id, 'f')
  1052.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1053.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1054.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1055.         end
  1056.  
  1057.         when nn=='d2'  then
  1058.         do
  1059.             yw = 2.945
  1060.             if al == 'a' then call auflhoch()
  1061.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1062.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1063.             call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1064.             call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  1065.         end
  1066.  
  1067.  
  1068.     /* y-Raster der Noten - Notenhälse nach unten */
  1069.  
  1070.         when nn=='F#5'  then
  1071.         do
  1072.             yw = 1.12
  1073.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1074.             call ppm_SetSize(20)
  1075.             call ppm_TextIntoBox(box#id, 's')
  1076.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1077.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1078.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  1079.         end
  1080.         when nn=='F5'  then
  1081.         do
  1082.             yw = 1.12
  1083.             if al == 'n' then call aufltief()
  1084.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1085.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1086.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  1087.         end
  1088.         when nn=='E5'  then
  1089.         do
  1090.             yw = 1.22
  1091.             if al == 'n' then call aufltief()
  1092.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1093.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1094.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  1095.         end
  1096.         when nn=='Eb5'  then
  1097.         do
  1098.             yw = 1.22
  1099.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1100.             call ppm_SetSize(20)
  1101.             call ppm_TextIntoBox(box#id, 'f')
  1102.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1103.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1104.             call ppm_DrawLine(notex, zz+1.4, (notex+0.4), zz+1.4)
  1105.         end
  1106.         when nn=='D#5'  then
  1107.         do
  1108.             yw = 1.32
  1109.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1110.             call ppm_SetSize(20)
  1111.             call ppm_TextIntoBox(box#id, 's')
  1112.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1113.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1114.         end
  1115.         when nn=='D5'  then
  1116.         do
  1117.             yw = 1.32
  1118.             if al == 'n' then call aufltief()
  1119.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1120.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1121.         end
  1122.         when nn=='Db5'  then
  1123.         do
  1124.             yw = 1.32
  1125.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1126.             call ppm_SetSize(20)
  1127.             call ppm_TextIntoBox(box#id, 'f')
  1128.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1129.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1130.         end
  1131.         when nn=='C#5'  then
  1132.         do
  1133.             yw = 1.42
  1134.             call ppm_DrawLine(notex, zz+1.8, (notex+0.4), zz+1.8)
  1135.             call ppm_DrawLine(notex, zz+1.6, (notex+0.4), zz+1.6)
  1136.         end
  1137.  
  1138.         when nn=='C5'  then
  1139.         do
  1140.             yw = 1.42
  1141.             if al == 'n' then call aufltief()
  1142.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1143.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  1144.         end
  1145.  
  1146.         when nn=='B4'  then
  1147.         do
  1148.             yw = 1.52
  1149.             if al == 'n' then call aufltief()
  1150.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1151.         end
  1152.  
  1153.         when nn=='Bb4'  then
  1154.         do
  1155.             yw = 1.52
  1156.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1157.             call ppm_SetSize(20)
  1158.             call ppm_TextIntoBox(box#id, 'f')
  1159.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1160.         end
  1161.  
  1162.         when nn=='A#4' then
  1163.         do
  1164.             yw = 1.62
  1165.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1166.             call ppm_SetSize(20)
  1167.             call ppm_TextIntoBox(box#id, 's')
  1168.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1169.         end
  1170.  
  1171.         when nn=='A4'  then
  1172.         do
  1173.             yw = 1.62
  1174.             if al == 'n' then call aufltief()
  1175.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1176.         end
  1177.  
  1178.         when nn=='Ab4' then
  1179.         do
  1180.             yw = 1.62
  1181.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1182.             call ppm_SetSize(20)
  1183.             call ppm_TextIntoBox(box#id, 'f')
  1184.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  1185.         end
  1186.  
  1187.         when nn=='G#4' then
  1188.         do
  1189.             yw = 1.72
  1190.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1191.             call ppm_SetSize(20)
  1192.             call ppm_TextIntoBox(box#id, 's')
  1193.         end
  1194.         when nn=='G4'  then
  1195.         do
  1196.             yw = 1.72
  1197.             if al == 'n' then call aufltief()
  1198.         end
  1199.         when nn=='Gb4' then
  1200.         do
  1201.             yw = 1.72
  1202.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1203.             call ppm_SetSize(20)
  1204.             call ppm_TextIntoBox(box#id, 'f')
  1205.         end
  1206.         when nn=='F#4' then
  1207.         do
  1208.             yw = 1.82
  1209.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1210.             call ppm_SetSize(20)
  1211.             call ppm_TextIntoBox(box#id, 's')
  1212.         end
  1213.         when nn=='F4'  then
  1214.         do
  1215.             yw = 1.82
  1216.             if al == 'n' then call aufltief()
  1217.         end
  1218.         when nn=='E#4' then
  1219.         do
  1220.             yw = 1.92
  1221.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1222.             call ppm_SetSize(20)
  1223.             call ppm_TextIntoBox(box#id, 's')
  1224.         end
  1225.         when nn=='E4'  then
  1226.         do
  1227.             yw = 1.92
  1228.             if al == 'n' then call aufltief()
  1229.         end
  1230.         when nn=='Eb4' then
  1231.         do
  1232.             yw = 1.92
  1233.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1234.             call ppm_SetSize(20)
  1235.             call ppm_TextIntoBox(box#id, 'f')
  1236.         end
  1237.         when nn=='D#4' then
  1238.         do
  1239.             yw = 2.02
  1240.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1241.             call ppm_SetSize(20)
  1242.             call ppm_TextIntoBox(box#id, 's')
  1243.         end
  1244.         when nn=='D4'  then
  1245.         do
  1246.             yw = 2.02
  1247.             if al == 'n' then call aufltief()
  1248.         end
  1249.         when nn=='Db4' then
  1250.         do
  1251.             yw = 2.02
  1252.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1253.             call ppm_SetSize(20)
  1254.             call ppm_TextIntoBox(box#id, 'f')
  1255.         end
  1256.         when nn=='C#4' then
  1257.         do
  1258.             yw = 2.12
  1259.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1260.             call ppm_SetSize(20)
  1261.             call ppm_TextIntoBox(box#id, 's')
  1262.         end
  1263.         when nn=='C4'  then
  1264.         do
  1265.             yw = 2.12
  1266.             if al == 'n' then call aufltief()
  1267.         end
  1268.         when nn=='B3'  then
  1269.         do
  1270.             yw = 2.22
  1271.             if al == 'n' then call aufltief()
  1272.         end
  1273.         when nn=='Bb3'  then
  1274.         do
  1275.             yw = 2.22
  1276.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1277.             call ppm_SetSize(20)
  1278.             call ppm_TextIntoBox(box#id, 'f')
  1279.         end
  1280.         when nn=='A#3' then
  1281.         do
  1282.             yw = 2.32
  1283.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1284.             call ppm_SetSize(20)
  1285.             call ppm_TextIntoBox(box#id, 's')
  1286.         end
  1287.         when nn=='A3'  then
  1288.         do
  1289.             yw = 2.32
  1290.             if al == 'n' then call aufltief()
  1291.         end
  1292.         when nn=='Ab3' then
  1293.         do
  1294.             yw = 2.32
  1295.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1296.             call ppm_SetSize(20)
  1297.             call ppm_TextIntoBox(box#id, 'f')
  1298.         end
  1299.         when nn=='G#3' then
  1300.         do
  1301.             yw = 2.42
  1302.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1303.             call ppm_SetSize(20)
  1304.             call ppm_TextIntoBox(box#id, 's')
  1305.         end
  1306.         when nn=='G3'  then
  1307.         do
  1308.             yw = 2.42
  1309.             if al == 'n' then call aufltief()
  1310.         end
  1311.         when nn=='Gb3' then
  1312.         do
  1313.             yw = 2.42
  1314.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1315.             call ppm_SetSize(20)
  1316.             call ppm_TextIntoBox(box#id, 'f')
  1317.         end
  1318.         when nn=='F#3' then
  1319.         do
  1320.             yw = 2.52
  1321.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1322.             call ppm_SetSize(20)
  1323.             call ppm_TextIntoBox(box#id, 's')
  1324.         end
  1325.         when nn=='F3'  then
  1326.         do
  1327.             yw = 2.52
  1328.             if al == 'n' then call aufltief()
  1329.         end
  1330.         when nn=='E#3' then
  1331.         do
  1332.             yw = 2.62
  1333.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1334.             call ppm_SetSize(20)
  1335.             call ppm_TextIntoBox(box#id, 's')
  1336.         end
  1337.         when nn=='E3'  then
  1338.         do
  1339.             yw = 2.62
  1340.             if al == 'n' then call aufltief()
  1341.         end
  1342.         when nn=='Eb3' then
  1343.         do
  1344.             yw = 2.62
  1345.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1346.             call ppm_SetSize(20)
  1347.             call ppm_TextIntoBox(box#id, 'f')
  1348.         end
  1349.         when nn=='D#3' then
  1350.         do
  1351.             yw = 2.72
  1352.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1353.             call ppm_SetSize(20)
  1354.             call ppm_TextIntoBox(box#id, 's')
  1355.         end
  1356.         when nn=='D3'  then
  1357.         do
  1358.             yw = 2.72
  1359.             if al == 'n' then call aufltief()
  1360.         end
  1361.         when nn=='Db3' then
  1362.         do
  1363.             yw = 2.72
  1364.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1365.             call ppm_SetSize(20)
  1366.             call ppm_TextIntoBox(box#id, 'f')
  1367.         end
  1368.  
  1369.         when nn=='C#3' then
  1370.         do
  1371.             yw = 2.82
  1372.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1373.             call ppm_SetSize(20)
  1374.             call ppm_TextIntoBox(box#id, 's')
  1375.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1376.         end
  1377.  
  1378.         when nn=='C3'  then
  1379.         do
  1380.             yw = 2.82
  1381.             if al == 'n' then call aufltief()
  1382.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1383.         end
  1384.  
  1385.         when nn=='B2'  then
  1386.         do
  1387.             yw = 2.92
  1388.             if al == 'n' then call aufltief()
  1389.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1390.         end
  1391.  
  1392.         when nn=='Bb2'  then
  1393.         do
  1394.             yw = 2.92
  1395.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1396.             call ppm_SetSize(20)
  1397.             call ppm_TextIntoBox(box#id, 'f')
  1398.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1399.         end
  1400.  
  1401.         when nn=='A#2' then
  1402.         do
  1403.             yw = 3.02
  1404.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1405.             call ppm_SetSize(20)
  1406.             call ppm_TextIntoBox(box#id, 's')
  1407.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1408.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1409.         end
  1410.  
  1411.         when nn=='A2'  then
  1412.         do
  1413.           yw = 3.02
  1414.             if al == 'n' then call aufltief()
  1415.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1416.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1417.         end
  1418.  
  1419.         when nn=='Ab2'  then
  1420.         do
  1421.           yw = 3.02
  1422.           box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1423.           call ppm_SetSize(20)
  1424.           call ppm_TextIntoBox(box#id, 'f')
  1425.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1426.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1427.         end
  1428.  
  1429.         when nn=='G#2'  then
  1430.         do
  1431.             yw = 3.12
  1432.             box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1433.             call ppm_SetSize(20)
  1434.             call ppm_TextIntoBox(box#id, 's')
  1435.             call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1436.             call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1437.         end
  1438.  
  1439.         when nn=='G2'  then
  1440.         do
  1441.           yw = 3.12
  1442.             if al == 'n' then call aufltief()
  1443.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1444.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1445.         end
  1446.  
  1447.         when nn=='Gb2'  then
  1448.         do
  1449.           yw = 3.12
  1450.           box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1451.           call ppm_SetSize(20)
  1452.           call ppm_TextIntoBox(box#id, 'f')
  1453.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1454.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1455.         end
  1456.  
  1457.         when nn=='F#2'  then
  1458.         do
  1459.           yw = 3.22
  1460.           box#id = ppm_CreateBox(notex-0.23, yw+zz-0.15, 0.35, 0.75, 0)
  1461.           call ppm_SetSize(20)
  1462.           call ppm_TextIntoBox(box#id, 's')
  1463.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1464.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1465.           call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1466.         end
  1467.  
  1468.         when nn=='F2'  then
  1469.         do
  1470.           yw = 3.22
  1471.             if al == 'n' then call aufltief()
  1472.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1473.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1474.           call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1475.         end
  1476.  
  1477.         when nn=='E2'  then
  1478.         do
  1479.           yw = 3.32
  1480.             if al == 'n' then call aufltief()
  1481.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1482.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1483.           call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1484.         end
  1485.  
  1486.         when nn=='Eb2'  then
  1487.         do
  1488.           yw = 3.32
  1489.           box#id = ppm_CreateBox(notex-0.23, yw+zz-0.27, 0.35, 0.75, 0)
  1490.           call ppm_SetSize(20)
  1491.           call ppm_TextIntoBox(box#id, 'f')
  1492.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1493.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1494.         end
  1495.  
  1496.         when nn=='D2'  then
  1497.         do
  1498.           yw = 3.42
  1499.             if al == 'a' then call aufltief()
  1500.           call ppm_DrawLine(notex, zz+3, (notex+0.4), zz+3)
  1501.           call ppm_DrawLine(notex, zz+3.2, (notex+0.4), zz+3.2)
  1502.           call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4)
  1503.           call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6)
  1504.         end
  1505.  
  1506.  
  1507.  
  1508.         otherwise
  1509.         do
  1510.          call ppm_ClearStatus()
  1511.          exit_msg("There was an error!")
  1512.         end
  1513.       end
  1514.  
  1515.  
  1516.         /* dimension of a notebox */
  1517.           notewidht = 0.64
  1518.           noteheight = 0.97
  1519.  
  1520.  
  1521.           boxid = ppm_CreateBox(notex, yw+zz, notewidht, noteheight, 0)
  1522.           call ppm_SetSize(notepkt)
  1523.           call ppm_TextIntoBox(boxid, nw)
  1524.           bakx = notex
  1525.           notex = (notex + xw)
  1526.           if notex >=18.7 then
  1527.               do
  1528.                 notex = (2+(vz*0.175))
  1529.                 zz = zz + zdist
  1530.               end
  1531.     return
  1532. end
  1533. exit
  1534.  
  1535. auflhoch:
  1536. do
  1537.   Pbox = ppm_CreateBox(notex-0.34, yw+zz+0.07, 0.6, 1.2, 0)
  1538.   boxnm = ppm_DocNextBox(Pbox)
  1539.   call ppm_DeleteContents(boxnm)
  1540.   call ppm_ImportGraphic(boxnm, 'Genies:note_pause/naturalsng', Zeichen)
  1541.   return
  1542. end
  1543.  
  1544. aufltief:
  1545. do
  1546.   Pbox = ppm_CreateBox(notex-0.34, yw+zz-0.4, 0.6, 1.2, 0)
  1547.   boxnm = ppm_DocNextBox(Pbox)
  1548.   call ppm_DeleteContents(boxnm)
  1549.   call ppm_ImportGraphic(boxnm, 'Genies:note_pause/naturalsng', Zeichen)
  1550.   return
  1551. end
  1552.  
  1553. break_d:
  1554. break_e:
  1555. break_c:
  1556. halt:
  1557.     call exit_msg("User aborted Genie!")
  1558.  
  1559.  
  1560. exit_msg: procedure
  1561. do
  1562.     parse arg message
  1563.  
  1564.     if message ~= '' then
  1565.     call ppm_Inform(1,message,)
  1566.  
  1567.     call ppm_ClearStatus()
  1568.     call ppm_AutoUpdate(1)
  1569.     exit
  1570. end
  1571.  
  1572.